import { Random } from "mockjs"

// -----------自定义随机函数---------------------
Random.extend({
  // 自定义函数名：function({})
  fruit: function() {
    const arr = ["榴莲", "菠萝蜜", "椰子", "苹果", "菠萝", "香蕉", "桔子"]
    return this.pick(arr)
  }
})
